package com.itheima.stock.service;

import com.itheima.stock.common.domain.*;
import com.itheima.stock.pojo.StockBlockRtInfo;
import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.vo.resp.PageResult;
import com.itheima.stock.vo.resp.R;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

public interface StockService {

    List<StockBusiness> getAllStockBusiness();
    R<List<InnerMarketDomain>> innerIndexAll();
    R<List<StockBlockDomain>> sectorAllLimit();

    R<List<StockUpdownDomain>> getStockRtInfoLimit();

    R<PageResult<StockUpdownDomain>> stockPage(Integer page, Integer pageSize);

    R<Map> upDownCount();

    void stockExport(HttpServletResponse response, Integer page, Integer pagrSize) throws IOException;

    R<Map> stockTradeVol4InnerMarket();

    R<Map> stockUpDownScopeCount();

    R<List<Stock4MinuteDomain>> stockScreenTimeSharing(String code);

    R<List<Stock4EvrDayDomain>> getDayKLinData(String code);

    R<List<Stock4EvrDayDomain>> getDayKLinData2(String code);

}
